package com.lemon.boot.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 通知公告表持久层对象，对应数据库
 *
 * @author Lemon
 * @since 2024-02-29
 */
@Getter
@Setter
@ToString
@ApiModel(value = "通知公告表")
@TableName("sys_notice")
public class NoticePO implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键ID
    @TableId(value = "id")
    @ApiModelProperty(value = "主键ID")
    private Long id;

    //公告标题
    @ApiModelProperty(value = "公告标题")
    private String title;

    //公告内容
    @ApiModelProperty(value = "公告内容")
    private String content;

    //类型 1通知 2公告
    @ApiModelProperty(value = "类型 1通知 2公告")
    private Integer type;

    //备注
    @ApiModelProperty(value = "备注")
    private String remark;

    //创建者
    @ApiModelProperty(value = "创建者")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    //更新者
    @ApiModelProperty(value = "更新者")
    @TableField(fill = FieldFill.UPDATE)
    private String updateBy;

    //更新时间
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    //状态 1正常 0异常
    @ApiModelProperty(value = "状态 1正常 0异常")
    @TableField(fill = FieldFill.INSERT)
    private Integer status;

    //部门ID集合
    @ApiModelProperty(value = "部门ID集合")
    @TableField(exist = false)
    private List<Long> deptIdList;
}
